package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(200)"`
	Password string `gorm:"type:varchar(200)"`
}
type Userm struct {
	gorm.Model
	Name  string `gorm:"type:varchar(200)"`
	Pine  string `gorm:"type:varchar(200)"`
	User  string `gorm:"type:varchar(200)"`
	Email string `gorm:"type:varchar(200)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int(11)"`
	Rid int `gorm:"type:int(11)"`
}
type Role struct {
	gorm.Model
	Name string `gorm:"type:varchar(200)"`
	Text string `gorm:"type:varchar(200)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:varchar(200)"`
	Nid int `gorm:"type:varchar(200)"`
}
type Node struct {
	gorm.Model
	Node_To string `gorm:"type:varchar(200)"`
	Node_No string `gorm:"type:varchar(200)"`
}
